<link rel="stylesheet" type="text/css" href="/static/js/artdialog/skins/brief.css?4.1.7">
<script src="/static/js/artdialog/artDialog.js?skin=brief"></script>
{js href="/static/js/artdialog/plugins/iframeTools.js"}
{css href="/static/js/form/style.css"}
{js href="/static/js/form/form.js"}
{js href="/static/js/My97DatePicker/WdatePicker.js"}
<h1 class="page_title">会员编辑</h1>
<div id="obj_form" class="form2">
    <form action="{:url('customer_save')}" method="post">
        {if isset($customer['id'])}
        <input type="hidden" name="id" id="objId" value="{$customer['id']}">{/if}
        <dl class="lineD">
            <dt><b class="red">*</b>真实姓名：</dt>
            <dd>
                <input name="real_name" type="text" pattern="required" value="{$customer['real_name'] ?? ''}" alt="真实姓名不能为空">
                <label></label>
            </dd>
        </dl>
        <dl class="lineD">
            <dt>性别：</dt>
            <dd>
                <input name="sex" type="radio" value="0" checked="checked">
                <label> 女</label>&nbsp;&nbsp;
                <input name="sex" type="radio" {if condition="isset($customer['sex']) && $customer['sex'] == 1"}checked="checked" {/if} value="1">
                <label> 男</label>
            </dd>
        </dl>
        <dl class="lineD">
            <dt>出生日期：</dt>
            <dd>
                <input name="birthday" type="text" onfocus="WdatePicker()" class="Wdate" value="{$customer['birthday'] ?? ''}">
                <label></label>
            </dd>
        </dl>
        <dl class="lineD">
            <dt>详细地址：</dt>
            <dd>
                <input name="addr" type="text" empty pattern="required" value="{$customer['addr'] ?? ''}">
                <label></label>
            </dd>
        </dl>
        <dl class="lineD">
            <dt>固话：</dt>
            <dd>
                <input name="phone" type="text" empty pattern="phone" value="{$customer['phone'] ?? ''}" alt="请输入正确的电话号码">
                <label></label>
            </dd>
        </dl>
        <dl class="lineD">
            <dt><b class="red">*</b>手机：</dt>
            <dd>
                <input name="mobile" type="text" empty pattern="mobi" value="{$customer['mobile'] ?? ''}" alt="请输入正确的手机号">
                <label></label>
            </dd>
        </dl>
        <dl class="lineD">
            <dt>消费金额：</dt>
            <dd>
                <input name="balance" type="text" empty pattern="float" value="{$customer['balance'] ?? ''}" alt="请输入正确的金额">
                <label></label>
            </dd>
        </dl>
        <dl class="lineD">
            <dt>备注：</dt>
            <dd>
                <textarea name="remark">{$customer['remark'] ?? ''}</textarea>
            </dd>
        </dl>
        <div style="text-align:center">
            <input type="submit" value="提交" class="button">&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="reset" value="重置" class="button">
        </div>
    </form>
</div>